package com.ruoyi.recipes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜谱用料明细对象 recipe_ingredients
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class RecipeIngredients extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用料记录ID */
    private Long id;

    /** 菜谱ID */
    @Excel(name = "菜谱ID")
    private Long recipeId;

    /** 用料名称 */
    @Excel(name = "用料名称")
    private String name;

    /** 用量 */
    @Excel(name = "用量")
    private String quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRecipeId(Long recipeId) 
    {
        this.recipeId = recipeId;
    }

    public Long getRecipeId() 
    {
        return recipeId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("recipeId", getRecipeId())
            .append("name", getName())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("del", getDel())
            .toString();
    }
}
